package com.xzgj.fmmall.service;

import com.xzgj.fmmall.entity.User;
import com.xzgj.fmmall.vo.ResultVO;

import javax.websocket.server.PathParam;

public interface UserService {

    public ResultVO userRegister(String name, String password);
    public ResultVO checkLogin(String name, String password );

    public ResultVO checkTokenIsValid(String token);
    public ResultVO queryUsers();

    public ResultVO getUserInfoByUserId(String userId);

    public ResultVO updateUserInfoByUserId(@PathParam("User") User user);
}
